package com.song.tools.songtest.beans.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.song.tools.core.util.TimeUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 字典明细表查询响应体
 * </p>
 *
 * @author song tools
 * @since 2024-07-09
 */
@Data
@Schema(title = "DictionaryDetailQueryResponse", description = "字典明细表查询响应体")
public class DictionaryDetailQueryResponse implements Serializable {

    @Serial
    private static final long serialVersionUID = -1;

    /**
     * 字典ID
     */
    @Schema(title = "dictionaryId", description = "字典ID")
    private String dictionaryId;

    /**
     * 字典明细ID
     */
    @Schema(title = "dictionaryDetailId", description = "字典明细ID")
    private String dictionaryDetailId;

    /**
     * 字典值
     */
    @Schema(title = "dictionaryValue", description = "字典值")
    private String dictionaryValue;

    /**
     * 字典值编码
     */
    @Schema(title = "dictionaryValueCode", description = "字典值编码")
    private String dictionaryValueCode;

    /**
     * 字典值名称
     */
    @Schema(title = "dictionaryValueName", description = "字典值名称")
    private String dictionaryValueName;

    /**
     * 状态:0=启用,1=禁用
     */
    @Schema(title = "status", description = "状态:0=启用,1=禁用")
    private Integer status;

    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;

    /**
     * 排序
     */
    @Schema(title = "ordered", description = "排序")
    private Integer ordered;

    /**
     * 自增主键
     */
    @Schema(title = "id", description = "自增主键")
    private Long id;

    /**
     * 创建人用户名
     */
    @Schema(title = "createUsername", description = "创建人用户名")
    private String createUsername;

    /**
     * 创建时间
     */
    @Schema(title = "createTime", description = "创建时间")
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    private LocalDateTime createTime;

    /**
     * 更新人用户名
     */
    @Schema(title = "updateUsername", description = "更新人用户名")
    private String updateUsername;

    /**
     * 更新时间
     */
    @Schema(title = "updateTime", description = "更新时间")
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    private LocalDateTime updateTime;

}
